package com.dhcc.rabbitmq.topicexchange.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import com.dhcc.rabbitmq.topicexchange.config.TopicRabbitConfig;

@Component
@RabbitListener(queues = TopicRabbitConfig.messages)
public class Receiver2 {

    @RabbitHandler
    public void process(String hello) {
        System.out.println("Receiver2 : " + hello);
    }
}
